﻿using System;

namespace TextEditor
{
   

    public class A_DeleteTableRow : A_Action
    {
        public override string ActionName()
        {
            return "tablerowdelete";
        }

        public override A_Action Clone()
        {
            A_DeleteTableRow row = new A_DeleteTableRow();
            row.BaseCloneFrom(this);
            return row;
        }

        public override bool Execute()
        {
            base.myOwnerDocument._DeleteTableRow();
            return true;
        }

        public override bool isEnable()
        {
            return base.myOwnerDocument.GetInTable(base.myOwnerDocument.Content.CurrentElement) == null ? false : true;
        }

        public override bool UIExecute()
        {
            base.myOwnerDocument._DeleteTableRow();
            return true;
        }
    }
}

